Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
JavaScript XML library
ltx is a fast XML builder, parser, serialization and manipulation library for JavaScript.
The builder is a convenient and succinct API to build XML documents represented in memory as JavaScript primitives that can be serialized to XML strings.
The parser can parse XML documents or streams and support multiple parsers.
Features:
ltx.createElement
pragma)ltx`<foo bar="${baz}">`
npm install ltx
By default ltx uses its own parser which is the fastest but doesn't support advanced XML features. ltx supports third party parsers when such features are needed.
parser | ops/sec | JS | stream |
---|---|---|---|
sax-js | 43,058 | ☑ | ☑ |
libxmljs | 56,763 | ☐ | ☐ |
saxes | 62,246 | ☑ | ☑ |
node-xml | 81,980 | ☑ | ☑ |
node-expat | 72,720 | ☐ | ☑ |
ltx/lib/parsers/ltx | 490,593 | ☑ | ☑ |
From ltx/benchmarks/parsers.js, higher is better. Node.js v10.11.0 - i5-2520M
npm run benchmark
npm install
npm test
FAQs
<xml for="JavaScript">
The npm package ltx receives a total of 38,978 weekly downloads. As such, ltx popularity was classified as popular.
We found that ltx demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.